package com.top10.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author su
 * @since 2018-10-01
 */
@TableName("tb_coupon_user")
public class CouponUser extends Model<CouponUser> {

    private static final long serialVersionUID = 1L;

	private String orderId;
	private Date useDate;
	private Date receiveDate;
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
	private String uuid;
    /**
     * 优惠券UUID
     */
	private String couponId;
    /**
     * 用户ID
     */
	private String userId;
    /**
     * 优惠券是否已使用 0:未使用；1已使用
     */
	private String isUsed;


	public String getOrderId() {
		return orderId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}

	public Date getUseDate() {
		return useDate;
	}

	public void setUseDate(Date useDate) {
		this.useDate = useDate;
	}

	public Date getReceiveDate() {
		return receiveDate;
	}

	public void setReceiveDate(Date receiveDate) {
		this.receiveDate = receiveDate;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getUuid() {
		return uuid;
	}

	public void setUuid(String uuid) {
		this.uuid = uuid;
	}

	public String getCouponId() {
		return couponId;
	}

	public void setCouponId(String couponId) {
		this.couponId = couponId;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getIsUsed() {
		return isUsed;
	}

	public void setIsUsed(String isUsed) {
		this.isUsed = isUsed;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "CouponUser{" +
			", orderId=" + orderId +
			", useDate=" + useDate +
			", receiveDate=" + receiveDate +
			", id=" + id +
			", uuid=" + uuid +
			", couponId=" + couponId +
			", userId=" + userId +
			", isUsed=" + isUsed +
			"}";
	}
}
